    <!--页面主要内容-->
    <main class="lyear-layout-content">   
      <div class="container-fluid">      
        <div class="row">
          <div class="col-lg-12">
            <div class="card">
              <div class="card-body">               
                <form action="{:url('edittype')}" method="post" class="row" enctype="multipart/form-data">                 
                  <div class="form-group col-md-12">
                    <label for="title">分区名称</label>
                    <input type="text" class="form-control" id="tname" name="tname" value="{$data['tname']}" placeholder="请输入分区名称" />
                    <input type="text" style="display: none;"  name="tid" value="{$data['tid']}" />
                  </div>
                  <div class="form-group col-md-12">
                    <label>分区图上传(限一张)</label>
                    <div class="form-controls">                      
                      <ul class="list-inline clearfix lyear-uploads-pic">
                        <li class="col-xs-4 col-sm-3 col-md-2">
                          <figure>
                            <img id="img1" {if $data.tyimg !=''} src='{$data.tyimg}'{else}src='__PUBLIC__/images/gallery/15.jpg' {/if} alt="图片一">
                            <!--<figcaption>-->
                            <!--  <a class="btn btn-round btn-square btn-primary" href="#!"><i class="mdi mdi-eye"></i></a>-->
                            <!--  <a class="btn btn-round btn-square btn-danger" href="#!"><i class="mdi mdi-delete"></i></a>-->
                            <!--</figcaption>-->
                          </figure>
                        </li>
                        <li class="col-xs-4 col-sm-3 col-md-2">
                          <a class="pic-add" id="add-pic-btn" href="#!" title="点击上传"> 
                          </a>
                          <input type="file" id="file" name="tyimg" multiple style="position: relative;top: -90px;;width: 100%;height: 100%;cursor: pointer;opacity: 0" value="点击上传">
                        </li>
                        <li class="col-xs-4 col-sm-3 col-md-2"><label id="text"></label></li>
                      </ul>
                    </div>
                  </div>
                  <div class="form-group col-md-12">
                    <label for="title">为该分区选择父类</label>
                    <div class="form-controls">
                      <select name="topid" class="form-control" id="type">
                      <option value="">没有父类</option>
                      {foreach $topdata as $key=>$vo}
                        <option value="{$vo['tid']}" {$vo['tid']==$data['topid']?'selected':''}>{$vo['tname']}</option>
                      {/foreach}
                      </select>
                    </div>
                  </div>
                  <div class="form-group col-md-12">
                    <button type="submit" class="btn btn-primary ajax-post" target-form="add-form">确定修改</button>
                    <button type="button" class="btn btn-default" onclick="javascript:history.back(-1);return false;">返 回</button>
                  </div>
                </form>
       
              </div>
            </div>
          </div>
          
        </div>
        
      </div>
      
    </main>
    <!--End 页面主要内容-->
  </div>
</div>

<script type="text/javascript" src="__PUBLIC__/js/jquery.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/bootstrap.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/perfect-scrollbar.min.js"></script>
<!--标签插件-->
<script src="__PUBLIC__/js/jquery-tags-input/jquery.tagsinput.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/main.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/self_disimg.js"></script>
</body>
</html>